package com.ltu.config.mybatis;

import com.alibaba.fastjson2.JSONArray;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.ltu.model.response.PubJsonObjVO;

public class FastJsonArrayTypeHandler extends  FastjsonTypeHandler  {
	 private final Class<? extends Object> type;
	
	public FastJsonArrayTypeHandler(Class<?> type) {
        super(type);
        this.type = type;
    }
    @Override
    protected Object parse(String json) {
        return JSONArray.parseArray(json, PubJsonObjVO.class);
    }

    @Override
    protected String toJson(Object obj) {
        return super.toJson(obj);
    }


}
